package tests;

import common.Utils;
import org.openqa.selenium.By;

public class UserPage extends Utils {
    public static String url = "http://127.0.0.1:58080/index.html";
    public UserPage() {
        super(url);
    }

    public void User() throws InterruptedException {

        driver.findElement(By.cssSelector("#index_nav_avatar")).click();
        driver.findElement(By.cssSelector("#index_user_settings")).click();
        //检查“我的账户”
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div > div.col-3.d-none.d-md-block.border-end > div > div > a"));
        //检查“个人简介”
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div > div.col.d-flex.flex-column > div > h3:nth-child(16)"));

        Thread.sleep(3000);
        driver.quit();
    }
}
